const express = require('express');
const router = express.Router();

router.get('/forClaimSettlements', (req, res) => {
    const content = [];
    const {pageIndex, pageSize} = req.query;
    for(let i = 0; i < 20; i++)
        content.push({
            id: `2019${i}`,
            code: `JSJS-2019-${i}`,
            serviceName: `��������-${i}`,
            content: 'string',
            causePartName: 'string',
            causePartCode: 'string',
            startTime: '2019-09-12T11:27:39.715Z',
            endTime: '2019-09-12T11:27:39.715Z',
        });
    res.json({
        message: '',
        payload: {
            content,
            pageIndex: parseInt(pageIndex, 10),
            pageSize: parseInt(pageSize, 10),
            totalElements: 50
        }
    });
});
router.get('/forClaimSettlements/simple', (req, res) => {
    const content = [];
    for(let i = 0; i < 10; i++)
        content.push({
            id: `2019${i}`,
            code: `JSJS-2019-${i}`,
            serviceName: `��������-${i}`,
            content: 'string',
            causePartName: 'string',
            causePartCode: 'string',
        });
    res.json({
        message: '',
        payload: {
            content
        }
    });
});

router.get('/forTechnologyActivityDelayApply', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        code: 'string',
        serviceName: 'string',
        content: 'string',
        startTime: '2020-04-30T07:18:33.951Z',
        endTime: '2020-04-30T07:18:33.951Z',
        causePartName: 'string',
        causePartCode: 'string',
        completionRate: 1
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 41,
        }
    });
});
module.exports = router;
